package com.hipmarket.platform.security.service

import com.hipmarket.platform.security.JwtAuthenticationUser
import org.springframework.security.crypto.password.PasswordEncoder

interface JwtAuthenticationService: PasswordEncoder {

    fun login(user: JwtAuthenticationUser): String

    fun login(primaryId: String = "", userPermissions: List<String> = listOf(), userRoles: List<String> = listOf(), userDetails: Any = ""): String

    fun logout(token: String)

}